import {service as request} from '@/utils/request'

//选择主机的分页条件查询
// export function getAllHosts(data) {
//     return request({
//         url: `/monitor/config/business/host/page/${JSON.stringify(data)}`,
//         method: 'get'
//     })
// }

// 5.10 为业务系统选择主机
export function doAdd(data) {
    return request({
        url: `/hawk/business/${data.businessId}/choose/hosts`,
        method: 'post',
        data:data.hostIds
    })
}


export function doDelete(data) {
    return request({
        url: `/monitor/config/business/host/${data}`,
        method: 'delete'
    })
}